﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace CaptureWebcame
{
    class ketnoi
    {
        SqlConnection conn;
        public SqlConnection connect()
        {
            conn = new SqlConnection(@"Data Source=nhphuoc\sqlexpress;Initial Catalog=CaptureWebcam;Integrated Security=True");
            if (conn.State == ConnectionState.Closed)
            {
                conn.Open();
            }
            else
            {
                conn.Close();
            }
            return conn;
        }
    }
}
